package cglib;

import net.sf.cglib.proxy.MethodInterceptor;
import net.sf.cglib.proxy.MethodProxy;

import java.lang.reflect.Method;

/**
 * @ClassName MyMethodInterceptor
 * @Description
 * @Author lichuanqi
 * @Date 2022/5/2 15:50
 * @Version 1.0
 **/
public class MyMethodInterceptor1 implements MethodInterceptor {

    @Override
    public Object intercept(Object o,
                            Method method,
                            Object[] objects,
                            MethodProxy methodProxy) throws Throwable {
        System.out.println("cglib proxy!! 111");
        return  methodProxy.invokeSuper(o, objects);
    }
}
